package com.ztjy.purchase.dao;

import com.ztjy.bean.CBrand;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface CBrandDao {
    int deleteByPrimaryKey(Integer brandId);

    int insert(CBrand record);

    boolean insertSelective(CBrand record);

    /**
     * 查询所有品牌
     * @param cBrand
     * @return
     */
    List<CBrand> findAllBrand(CBrand cBrand);

    CBrand selectByPrimaryKey(Integer brandId);

    boolean updateByPrimaryKeySelective(CBrand record);

    boolean updateByPrimaryKey(CBrand record);
}